import { getProductList, getDefaultData } from '@api'
import { dealRequest } from '@utils/dealRequest'

export const getDefaultDataApi = async () => {
  const { data, config } = await getDefaultData()
  return dealRequest({ data, config })
}

export const getProductListApi = async params => {
  const { data, config } = await getProductList(params)
  return dealRequest({ data, config })
}
